package com.kgc.novel.feign;


import com.kgc.novel.common.Res;
import com.kgc.novel.domain.entity.BookUser;
import com.kgc.novel.domain.param.BookUserParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "user-service")
public interface OrderUserFeign {

    @PostMapping("/search")
    public Res<List<BookUser>> listUser(@RequestBody BookUserParam param);
}
